Skip to content

test(ci): line-guard fixture expects no exemption after directory.rs split - #11339

Closed
dezren39 wants to merge 1 commit into
mainfrom
fix/production-line-guard-directory-fixture
Closed

dezren39 wants to merge 1 commit into
mainfrom
fix/production-line-guard-directory-fixture

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #11338. The directory.rs grandfather entry was removed in #8591, so the moved-path fixture must expect OVER LIMIT rather than GRANDFATHERED. Verified locally: check-production-line-limit.test.sh passes all contract tests.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Tests
    • Updated the production line-limit check to confirm that an over-limit file at the moved path is reported when no grandfather entry applies.

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 20:43
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The production line limit contract test now expects the moved directory.rs path to fail the guard when no grandfather entry matches it.

Changes: Production line limit guard

Layer / File(s) Summary
Update guard contract expectation
.github/scripts/check-production-line-limit.test.sh
The test now expects a 3,000-line file at the moved path to fail the guard and be reported as over limit when no grandfather entry matches it.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other · Severity of issue fixed: Medium

Suggested reviewers: claude

Merge Risk: Minimal · up to c4092

This updates a contract test to match the guard's behavior after the grandfather entry was removed. It does not change production behavior, and the merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: a test fixture for the line-limit guard now expects no grandfather exemption after the directory.rs split. The raw summary says the moved-path test now expects a 3,000-line…
Linked Issues check Passed Issue #11338 requires the moved-path fixture in .github/scripts/check-production-line-limit.test.sh to expect OVER LIMIT for a file with no grandfather entry. The diff against the merge base changes…
Out of Scope Changes check Passed The whole-PR diff against the merge base touches one file, .github/scripts/check-production-line-limit.test.sh. All hunks update the moved-path fixture that #11338 describes. No unrelated change app…
Full details: Title check

Explanation

The title names the change: a test fixture for the line-limit guard now expects no grandfather exemption after the directory.rs split. The raw summary says the moved-path test now expects a 3,000-line file at that path to fail as over limit, and the objectives say the fixture was updated to expect OVER LIMIT instead of GRANDFATHERED. The title matches the main change. It is specific and scannable, and it has no vague terms.

Full details: Linked Issues check

Explanation

Issue #11338 requires the moved-path fixture in .github/scripts/check-production-line-limit.test.sh to expect OVER LIMIT for a file with no grandfather entry. The diff against the merge base changes only that fixture. The GRANDFATHERED assertion for pkgs/id/crates/id-directory/src/directory.rs is replaced by a block that requires the guard to exit nonzero. It then greps OVER LIMIT pkgs/id/crates/id-directory/src/directory.rs: 3000 production lines in the output. This matches the requirement. The issue's coding requirement is the test update. No additional coding requirement exists in the issue. I did not run the test. The result relies on the diff and the expected output text, which match the issue.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff against the merge base touches one file, .github/scripts/check-production-line-limit.test.sh. All hunks update the moved-path fixture that #11338 describes. No unrelated change appears in the diff. The PR description and the AI summary agree with the diff.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c851655f-b16a-43d9-b6b7-fb7cb3797bf9
Commits

Reviewing files that changed from the base of the PR and between 08e392a and c40923b.

Files selected for processing: 1

  • .github/scripts/check-production-line-limit.test.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main-broken: developing-today/code 08e392a — basic: production line limit (2500)

1 participant